package com.tsingteng.cosfun.ui.message;

import com.tsingteng.cosfun.bean.NotificationBean;
import com.tsingteng.cosfun.callback.RxObserver;
import com.tsingteng.cosfun.http.RxSchedulers;
import com.tsingteng.cosfun.mvp.module.BaseModel;

import static com.tsingteng.cosfun.common.Config.PAGE_SIZE;

/**
 * 通知列表网络请求层
 * 常胜
 * 2018.8.14
 * */
public class MessageModel extends BaseModel implements IMessageModel{

    @Override
    public void getUserNotification(String type, int page, RxObserver<NotificationBean> callback) {
        doRxRequest().getUserNotification(type,page,PAGE_SIZE).compose(RxSchedulers.io_main()).subscribe(callback);
    }
}
